From: Florian Müllner Date: Mon, 22 Feb 2010 21:05:42 +0000 (+0100) Subject: Always make notifications with '\n' in bannerText expandable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10409 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f9c5202dd14d772915be350a5560aca61c2d6e5b;p=gnome-shell.git Always make notifications with '\n' in bannerText expandable Right now notifications are expandable if the length of bannerText exceeds the notification's width - however, if bannerText contains newlines, it should be expandable regardless of the length. https://bugzilla.gnome.org/show_bug.cgi?id=610549 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 2b11387e3..2907f920d 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -287,7 +287,8 @@ Notification.prototype = { overflow = true; } - if (overflow && this._bannerBodyText) + if (this._bannerBodyText && + (overflow || this._bannerBodyText.indexOf('\n') > -1)) this._addBannerBody(); },